package com.eudi.user.service.impl;

import java.util.List;

import org.eudi.user.dao.IUserDao;

import com.eudi.dubbo.common.User;
import com.eudi.user.service.IUserService;

public class UserServiceImpl implements IUserService {
	
	private IUserDao userDao;
	

	/* （非 Javadoc）
	 * @see org.eudi.user.service.IUserService#getUser(int)
	 */
	public User getUser(int id) {
		return userDao.get(id);
	}


	public void addUser(User user) {
		userDao.add(user);
	}


	public List<User> getUsers() {
		return userDao.findUsers();
	}


	public IUserDao getUserDao() {
		return userDao;
	}


	public void setUserDao(IUserDao userDao) {
		this.userDao = userDao;
	}


	public void remove(Integer id) {
		userDao.remove(id);
	}
	
}
